package com.ccrfid.rmc6.entity.sys;

import javax.persistence.*;

@Entity
@Table(name = "s_dict")
public class DictEntity {
    private Integer id;
    private String dictName;
    private Integer sortNumber;
    private Integer pid;
    private Integer typeId;
    private String dictSn;
    private Integer readonly;
    private Integer defaulted;
    private Integer enabled;
    private String base64Icon;
    private String remark;

    @Id
    @Column(name = "id", nullable = false)
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Basic
    @Column(name = "dict_name", nullable = false, length = 64)
    public String getDictName() {
        return dictName;
    }

    public void setDictName(String dictName) {
        this.dictName = dictName;
    }

    @Basic
    @Column(name = "sort_number", nullable = true)
    public Integer getSortNumber() {
        return sortNumber;
    }

    public void setSortNumber(Integer sortNumber) {
        this.sortNumber = sortNumber;
    }

    @Basic
    @Column(name = "pid", nullable = true)
    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    @Basic
    @Column(name = "type_id", nullable = false)
    public Integer getTypeId() {
        return typeId;
    }

    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }

    @Basic
    @Column(name = "dict_sn", nullable = true, length = 64)
    public String getDictSn() {
        return dictSn;
    }

    public void setDictSn(String dictSn) {
        this.dictSn = dictSn;
    }

    @Basic
    @Column(name = "is_readonly", nullable = false)
    public Integer getReadonly() {
        return readonly;
    }

    public void setReadonly(Integer readonly) {
        this.readonly = readonly;
    }

    @Basic
    @Column(name = "is_defaulted", nullable = false)
    public Integer getDefaulted() {
        return defaulted;
    }

    public void setDefaulted(Integer defaulted) {
        this.defaulted = defaulted;
    }

    @Basic
    @Column(name = "is_enabled", nullable = false)
    public Integer getEnabled() {
        return enabled;
    }

    public void setEnabled(Integer enabled) {
        this.enabled = enabled;
    }

    @Basic
    @Column(name = "base64_icon", nullable = true, length = -1)
    public String getBase64Icon() {
        return base64Icon;
    }

    public void setBase64Icon(String base64Icon) {
        this.base64Icon = base64Icon;
    }

    @Basic
    @Column(name = "remark", nullable = true, length = 255)
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
